//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "adminActions\fn_ghostMode.sqf"
#include <core_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;
		
if (captive player) then { 
	player setcaptive false; 
	hint localize "STR_MSO_AA_GHOST_MODE_OFF";
} else {
	player setcaptive true; 
	hint localize "STR_MSO_AA_GHOST_MODE_ON";
};
GVAR(GhostMode) = captive player;
[QGVAR(GHOSTMODE),[player,GVAR(GhostMode),name player, getPlayerUID player]] call FUNC(raiseEvent);

TRACE_1("End",GVAR(GhostMode));
TMFPROFILERSTOP;
